package com.baibei.product.merge.detail;

import com.baibei.basic.IPresenter;
import com.baibei.basic.IPresenterView;
import com.baibei.model.AddressInfo;
import com.baibei.model.MergeOrderInfo;

/**
 * Created by ChenRui on 2017/8/15 0015 18:58.
 */
public interface MergeOrderDetailContract {

    interface Presenter extends IPresenter {
        /**
         * 拼单
         */
        void merge();

        /**
         * 校验参数是否通过
         * @return 通过返回真
         */
        boolean checkParams();
    }

    interface View extends IPresenterView {

        MergeOrderInfo getMergeOrderInfo();

        /**
         * 参与拼单的数量
         */
        int getQuantity();

        /**
         * 获取收货地址
         */
        String getAddress();


        void onMergeFailed(String msg);

        void onMergeSuccess();

        void onLoadAddress(AddressInfo addressInfo);
    }
}
